package com.ks.component.net.model.api

import com.richard.base.net.bean.TokenBean
import com.ks.component.net.NetConstants
import com.richard.base.net.bean.KsResponse
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.Headers
import retrofit2.http.POST

/**
 ***************************************
 * 项目名称:kaishuvideo
 * @Author wuzhiguo
 * 邮箱：wuzhiguo@ksjgs.com
 * 创建时间: 2019/12/19     12:53 PM
 * 用途
 ***************************************

 */
interface TokenService {

    /**
     * token过期时刷新token
     *
     * @param jsonString
     * @return
     */
    @Headers(NetConstants.HeaderContentTypeLong)
    @POST("/pangu/user/debug.login/refresh")
    suspend fun refreshToken(@Body jsonString: RequestBody?): KsResponse<TokenBean>
}